Integrand size = 27, antiderivative size = 112 \[ \int \cot ^5(c+d x) \csc (c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {a^2 \csc (c+d x)}{d}+\frac {2 a^2 \csc ^2(c+d x)}{d}+\frac {a^2 \csc ^3(c+d x)}{3 d}-\frac {a^2 \csc ^4(c+d x)}{2 d}-\frac {a^2 \csc ^5(c+d x)}{5 d}+\frac {2 a^2 \log (\sin (c+d x))}{d}+\frac {a^2 \sin (c+d x)}{d} \]
a^2*csc(d*x+c)/d+2*a^2*csc(d*x+c)^2/d+1/3*a^2*csc(d*x+c)^3/d-1/2*a^2*csc(d *x+c)^4/d-1/5*a^2*csc(d*x+c)^5/d+2*a^2*ln(sin(d*x+c))/d+a^2*sin(d*x+c)/d
Time = 0.09 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.68 \[ \int \cot ^5(c+d x) \csc (c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {a^2 \left (30 \csc (c+d x)+60 \csc ^2(c+d x)+10 \csc ^3(c+d x)-15 \csc ^4(c+d x)-6 \csc ^5(c+d x)+60 \log (\sin (c+d x))+30 \sin (c+d x)\right )}{30 d} \]
(a^2*(30*Csc[c + d*x] + 60*Csc[c + d*x]^2 + 10*Csc[c + d*x]^3 - 15*Csc[c + d*x]^4 - 6*Csc[c + d*x]^5 + 60*Log[Sin[c + d*x]] + 30*Sin[c + d*x]))/(30* d)
Time = 0.30 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.75, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {3042, 3315, 27, 99, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cot ^5(c+d x) \csc (c+d x) (a \sin (c+d x)+a)^2 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (c+d x)^5 (a \sin (c+d x)+a)^2}{\sin (c+d x)^6}dx\) |
\(\Big \downarrow \) 3315 |
\(\displaystyle \frac {\int \csc ^6(c+d x) (a-a \sin (c+d x))^2 (\sin (c+d x) a+a)^4d(a \sin (c+d x))}{a^5 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {a \int \frac {\csc ^6(c+d x) (a-a \sin (c+d x))^2 (\sin (c+d x) a+a)^4}{a^6}d(a \sin (c+d x))}{d}\) |
\(\Big \downarrow \) 99 |
\(\displaystyle \frac {a \int \left (\csc ^6(c+d x)+2 \csc ^5(c+d x)-\csc ^4(c+d x)-4 \csc ^3(c+d x)-\csc ^2(c+d x)+2 \csc (c+d x)+1\right )d(a \sin (c+d x))}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {a \left (a \sin (c+d x)-\frac {1}{5} a \csc ^5(c+d x)-\frac {1}{2} a \csc ^4(c+d x)+\frac {1}{3} a \csc ^3(c+d x)+2 a \csc ^2(c+d x)+a \csc (c+d x)+2 a \log (a \sin (c+d x))\right )}{d}\) |
(a*(a*Csc[c + d*x] + 2*a*Csc[c + d*x]^2 + (a*Csc[c + d*x]^3)/3 - (a*Csc[c + d*x]^4)/2 - (a*Csc[c + d*x]^5)/5 + 2*a*Log[a*Sin[c + d*x]] + a*Sin[c + d *x]))/d
3.6.19.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_) )^(p_), x_] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, p}, x] && IntegersQ[m, n] && (IntegerQ[p] | | (GtQ[m, 0] && GeQ[n, -1]))
Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_ .)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Simp[1/(b^p* f) Subst[Int[(a + x)^(m + (p - 1)/2)*(a - x)^((p - 1)/2)*(c + (d/b)*x)^n, x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, c, d, m, n}, x] && Intege rQ[(p - 1)/2] && EqQ[a^2 - b^2, 0]
Time = 0.32 (sec) , antiderivative size = 77, normalized size of antiderivative = 0.69
method | result | size |
derivativedivides | \(-\frac {a^{2} \left (\frac {\left (\csc ^{5}\left (d x +c \right )\right )}{5}+\frac {\left (\csc ^{4}\left (d x +c \right )\right )}{2}-\frac {\left (\csc ^{3}\left (d x +c \right )\right )}{3}-2 \left (\csc ^{2}\left (d x +c \right )\right )-\csc \left (d x +c \right )+2 \ln \left (\csc \left (d x +c \right )\right )-\frac {1}{\csc \left (d x +c \right )}\right )}{d}\) | \(77\) |
default | \(-\frac {a^{2} \left (\frac {\left (\csc ^{5}\left (d x +c \right )\right )}{5}+\frac {\left (\csc ^{4}\left (d x +c \right )\right )}{2}-\frac {\left (\csc ^{3}\left (d x +c \right )\right )}{3}-2 \left (\csc ^{2}\left (d x +c \right )\right )-\csc \left (d x +c \right )+2 \ln \left (\csc \left (d x +c \right )\right )-\frac {1}{\csc \left (d x +c \right )}\right )}{d}\) | \(77\) |
parallelrisch | \(\frac {\left (\csc ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \left (\left (-\sin \left (5 d x +5 c \right )+5 \sin \left (3 d x +3 c \right )-10 \sin \left (d x +c \right )\right ) \ln \left (\sec ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (\sin \left (5 d x +5 c \right )-5 \sin \left (3 d x +3 c \right )+10 \sin \left (d x +c \right )\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {19 \sin \left (5 d x +5 c \right )}{32}-\frac {109 \cos \left (2 d x +2 c \right )}{12}+\frac {5 \cos \left (4 d x +4 c \right )}{2}-\frac {\cos \left (6 d x +6 c \right )}{4}+\frac {33 \sin \left (d x +c \right )}{16}-\frac {33 \sin \left (3 d x +3 c \right )}{32}+\frac {157}{30}\right ) \left (\sec ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a^{2}}{256 d}\) | \(180\) |
risch | \(-2 i a^{2} x -\frac {i a^{2} {\mathrm e}^{i \left (d x +c \right )}}{2 d}+\frac {i a^{2} {\mathrm e}^{-i \left (d x +c \right )}}{2 d}-\frac {4 i a^{2} c}{d}+\frac {2 i a^{2} \left (15 \,{\mathrm e}^{9 i \left (d x +c \right )}-80 \,{\mathrm e}^{7 i \left (d x +c \right )}+60 i {\mathrm e}^{8 i \left (d x +c \right )}+82 \,{\mathrm e}^{5 i \left (d x +c \right )}-120 i {\mathrm e}^{6 i \left (d x +c \right )}-80 \,{\mathrm e}^{3 i \left (d x +c \right )}+120 i {\mathrm e}^{4 i \left (d x +c \right )}+15 \,{\mathrm e}^{i \left (d x +c \right )}-60 i {\mathrm e}^{2 i \left (d x +c \right )}\right )}{15 d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{5}}+\frac {2 a^{2} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{d}\) | \(201\) |
norman | \(\frac {-\frac {a^{2}}{160 d}-\frac {a^{2} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{32 d}-\frac {a^{2} \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{480 d}+\frac {5 a^{2} \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16 d}+\frac {277 a^{2} \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{480 d}+\frac {355 a^{2} \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{96 d}+\frac {355 a^{2} \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{96 d}+\frac {277 a^{2} \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{480 d}+\frac {5 a^{2} \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16 d}-\frac {a^{2} \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{480 d}-\frac {a^{2} \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{32 d}-\frac {a^{2} \left (\tan ^{14}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{160 d}-\frac {11 a^{2} \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16 d}}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+\frac {2 a^{2} \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {2 a^{2} \ln \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}\) | \(304\) |
-a^2/d*(1/5*csc(d*x+c)^5+1/2*csc(d*x+c)^4-1/3*csc(d*x+c)^3-2*csc(d*x+c)^2- csc(d*x+c)+2*ln(csc(d*x+c))-1/csc(d*x+c))
Time = 0.27 (sec) , antiderivative size = 153, normalized size of antiderivative = 1.37 \[ \int \cot ^5(c+d x) \csc (c+d x) (a+a \sin (c+d x))^2 \, dx=-\frac {30 \, a^{2} \cos \left (d x + c\right )^{6} - 120 \, a^{2} \cos \left (d x + c\right )^{4} + 160 \, a^{2} \cos \left (d x + c\right )^{2} - 60 \, {\left (a^{2} \cos \left (d x + c\right )^{4} - 2 \, a^{2} \cos \left (d x + c\right )^{2} + a^{2}\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) \sin \left (d x + c\right ) - 64 \, a^{2} + 15 \, {\left (4 \, a^{2} \cos \left (d x + c\right )^{2} - 3 \, a^{2}\right )} \sin \left (d x + c\right )}{30 \, {\left (d \cos \left (d x + c\right )^{4} - 2 \, d \cos \left (d x + c\right )^{2} + d\right )} \sin \left (d x + c\right )} \]
-1/30*(30*a^2*cos(d*x + c)^6 - 120*a^2*cos(d*x + c)^4 + 160*a^2*cos(d*x + c)^2 - 60*(a^2*cos(d*x + c)^4 - 2*a^2*cos(d*x + c)^2 + a^2)*log(1/2*sin(d* x + c))*sin(d*x + c) - 64*a^2 + 15*(4*a^2*cos(d*x + c)^2 - 3*a^2)*sin(d*x + c))/((d*cos(d*x + c)^4 - 2*d*cos(d*x + c)^2 + d)*sin(d*x + c))
Timed out. \[ \int \cot ^5(c+d x) \csc (c+d x) (a+a \sin (c+d x))^2 \, dx=\text {Timed out} \]
Time = 0.23 (sec) , antiderivative size = 94, normalized size of antiderivative = 0.84 \[ \int \cot ^5(c+d x) \csc (c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {60 \, a^{2} \log \left (\sin \left (d x + c\right )\right ) + 30 \, a^{2} \sin \left (d x + c\right ) + \frac {30 \, a^{2} \sin \left (d x + c\right )^{4} + 60 \, a^{2} \sin \left (d x + c\right )^{3} + 10 \, a^{2} \sin \left (d x + c\right )^{2} - 15 \, a^{2} \sin \left (d x + c\right ) - 6 \, a^{2}}{\sin \left (d x + c\right )^{5}}}{30 \, d} \]
1/30*(60*a^2*log(sin(d*x + c)) + 30*a^2*sin(d*x + c) + (30*a^2*sin(d*x + c )^4 + 60*a^2*sin(d*x + c)^3 + 10*a^2*sin(d*x + c)^2 - 15*a^2*sin(d*x + c) - 6*a^2)/sin(d*x + c)^5)/d
Time = 0.38 (sec) , antiderivative size = 109, normalized size of antiderivative = 0.97 \[ \int \cot ^5(c+d x) \csc (c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {60 \, a^{2} \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) + 30 \, a^{2} \sin \left (d x + c\right ) - \frac {137 \, a^{2} \sin \left (d x + c\right )^{5} - 30 \, a^{2} \sin \left (d x + c\right )^{4} - 60 \, a^{2} \sin \left (d x + c\right )^{3} - 10 \, a^{2} \sin \left (d x + c\right )^{2} + 15 \, a^{2} \sin \left (d x + c\right ) + 6 \, a^{2}}{\sin \left (d x + c\right )^{5}}}{30 \, d} \]
1/30*(60*a^2*log(abs(sin(d*x + c))) + 30*a^2*sin(d*x + c) - (137*a^2*sin(d *x + c)^5 - 30*a^2*sin(d*x + c)^4 - 60*a^2*sin(d*x + c)^3 - 10*a^2*sin(d*x + c)^2 + 15*a^2*sin(d*x + c) + 6*a^2)/sin(d*x + c)^5)/d
Time = 9.76 (sec) , antiderivative size = 267, normalized size of antiderivative = 2.38 \[ \int \cot ^5(c+d x) \csc (c+d x) (a+a \sin (c+d x))^2 \, dx=\frac {82\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+12\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\frac {55\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{3}+11\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\frac {2\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{15}-a^2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-\frac {a^2}{5}}{d\,\left (32\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+32\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\right )}+\frac {3\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,d}+\frac {a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{96\,d}-\frac {a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{32\,d}-\frac {a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{160\,d}+\frac {2\,a^2\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}+\frac {9\,a^2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16\,d}-\frac {2\,a^2\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d} \]
((2*a^2*tan(c/2 + (d*x)/2)^2)/15 + 11*a^2*tan(c/2 + (d*x)/2)^3 + (55*a^2*t an(c/2 + (d*x)/2)^4)/3 + 12*a^2*tan(c/2 + (d*x)/2)^5 + 82*a^2*tan(c/2 + (d *x)/2)^6 - a^2/5 - a^2*tan(c/2 + (d*x)/2))/(d*(32*tan(c/2 + (d*x)/2)^5 + 3 2*tan(c/2 + (d*x)/2)^7)) + (3*a^2*tan(c/2 + (d*x)/2)^2)/(8*d) + (a^2*tan(c /2 + (d*x)/2)^3)/(96*d) - (a^2*tan(c/2 + (d*x)/2)^4)/(32*d) - (a^2*tan(c/2 + (d*x)/2)^5)/(160*d) + (2*a^2*log(tan(c/2 + (d*x)/2)))/d + (9*a^2*tan(c/ 2 + (d*x)/2))/(16*d) - (2*a^2*log(tan(c/2 + (d*x)/2)^2 + 1))/d